#ifndef PARSETHREAD_H
#define PARSETHREAD_H

#include <QThread>
#include <QUrl>
#include <QMap>
#include <QNetworkReply>

#include "parser.h"

class ParseThread : public QThread
{
    Q_OBJECT

public:
    ParseThread();
    void begin(QUrl url);
    QMap <QString, int> getCount();
    QNetworkReply *getReply();

protected:
    void run();

private:
    Parser *parser;
    QUrl url;
};

#endif // PARSETHREAD_H
